import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import {Grid, GridItem, Slider, Popup,Field, Button,Search,Picker,Dialog,Icon } from 'vant';
import 'vant/lib/index.css';
import vuescroll from 'vuescroll';

const app = createApp(App)

app.use(Button).use(Search).use(Picker).use(Popup).use(Field).use(Dialog)

app.use(Icon).use(Slider).use(Grid).use(GridItem)

// tslint:disable-next-line
//@ts-ignore
app.use(vuescroll,{
  ops: {
       vuescroll: {
         mode: 'native',
       },
      scrollPanel: {
        scrollingX: false,
        scrollingY: true,
      }
    // The global config
  },
  name: 'myScroll'
})
app.mount('#app')
